const ALY = require('aliyun-sdk')

const { ACCESS_KEY_ID, SECRET_ACCESS_KEY } = process.env

const oss = new ALY.OSS({
  accessKeyId: ACCESS_KEY_ID,
  secretAccessKey: SECRET_ACCESS_KEY,
  endpoint: 'http://oss-cn-shanghai.aliyuncs.com',
  apiVersion: '2013-10-15',
})

module.exports = oss